# These files are disabled because they produce lots of non-interesting and/or
# flaky coverage that is not a function of syscall inputs. For example,
# rbtree can be global and individual rotations don't correlate with inputs.
KCOV_INSTRUMENT_string.o := n

lib-y := ctype.o string.o vsprintf.o

lib-$(CONFIG_PRINTK) += dump_stack.o

obj-y += sort.o \
	 bitmap.o
obj-y += hexdump.o
obj-y += kstrtox.o

obj-$(CONFIG_CRC32)	+= crc32.o

libfdt_files = fdt.o fdt_ro.o
$(foreach file, $(libfdt_files), \
	$(eval CFLAGS_$(file) = -I$(src)/../scripts/dtc/libfdt))
lib-$(CONFIG_LIBFDT) += $(libfdt_files)

hostprogs-y	:= gen_crc32table
clean-files	:= crc32table.h

$(obj)/crc32.o: $(obj)/crc32table.h

quiet_cmd_crc32 = GEN     $@
      cmd_crc32 = $< > $@

$(obj)/crc32table.h: $(obj)/gen_crc32table
	$(call cmd,crc32)
